package com.druid;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @Author : hebad90@163.com
 * @Date : 2014/9/19 15:17
 * @From : javalearn
 */
public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:**/druid/application.xml");
        JdbcTemplate jdbcTemplate=(JdbcTemplate)ctx.getBean("jdbcTemplate");
        jdbcTemplate.execute("insert into users(name,age) values('aaa',13)");
    }
}
